package middlewares

import (
	"github.com/gin-gonic/gin"
	"shop_webs/order_web/models"
)

func SetUserId() gin.HandlerFunc {
	return func(c *gin.Context) {
		c.Set("claims", models.MyClaims{
			AuthorityId: 1,
		})
		c.Set("userId", 1)
		c.Next()
	}
}
